package com.example.lottery.controller.param;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class UserLoginByPasswordParam extends UserLoginParam {
    /**
     * 密码登陆的账号可以是邮箱也可以是手机号
     */
    @NotBlank(message = "账号不能为空")
    private String loginName;
    @NotBlank(message = "密码不能为空")
    private String password;
}
